<template>
  <div id="app">
    <keep-alive>
      <router-view/>
    </keep-alive>     
  </div>
</template>
<script>
export default {
  name: 'App',
  provide() {
    return {
      app: this
    }
  },
  data() {
    return {
      yyy: ['app的数据']
    }
  },
  mounted() {
    
  },
  methods: {
    btn() {
      alert('我是app的点击事件！')
    },
  }
}
</script>
<style lang="scss">

</style>
